package com.extendsdemo2;

/**
 * @Auther: shiquan
 * @Date: 2024/10/20 - 10 - 20 -17:02
 */
public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("heima001","张三",15000,8000);
        System.out.println(m.getId()+","+m.getName()+","+m.getBouns()+","+m.getSalary());
        m.work();
        m.eat();


        Cook c = new Cook();
        c.setId("heima002");
        c.setName("李四");
        c.setSalary(8000);
        System.out.println(c.getId()+","+c.getName()+","+c.getSalary());
        c.work();
        c.eat();

    }
}
